from django.db import models
import datetime

# Create your models here.

class Termino(models.Model):
    palabra = models.CharField(max_length=200)
	
	# ...
    def __unicode__(self):
        return self.question

class Posting(models.Model):
    termino = models.ForeignKey(Termino)
    articulo = models.IntegerField()
    cantidad = models.IntegerField()
	
	# ...
    def __unicode__(self):
        return self.termino + self.articulo + self.cantidad
	
	class Meta:
		unique_together = [("termino", "articulo")]
		
	